<%@page import="share.Constant"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>

<%@ page import="net.tanesha.recaptcha.ReCaptcha"%>
<%@ page import="net.tanesha.recaptcha.ReCaptchaFactory"%>

<!DOCTYPE html>
<html>
<head>
<title>Admin Login</title>
<link rel="stylesheet" type="text/css" href="css/bootstrap.min.css">
<link rel="stylesheet" href="<c:url value="css/animate.css" />"
	type="text/css" />
<link rel="stylesheet" href="css/style.css" type="text/css" />
<link rel="stylesheet"
	href="<c:url value="font-awesome-4.2.0/css/font-awesome.min.css" />"
	type="text/css" />
</head>
<body>
	<div class="login clearfix">
		<p>
			Better service, better life<br> CDC Bank
		</p>
		<div class="clearfix admin">
			<h3>Administrator Login</h3>
			<form action="loginAdmin" role="form" method="post">
				<c:if test="${objLoginResult != null}">
					<p class="error">${objLoginResult.message}</p>
				</c:if>
				<div class="input-group">
					<div class="input-group-addon">
						<span class="fa fa-user"></span>
					</div>
					<input type="text" name="loginId" class="form-control" id="username"
						placeholder="username" autofocus>
				</div>
				<div class="input-group">
					<div class="input-group-addon">
						<span class="fa fa-lock"></span>
					</div>
					<input type="password" name="password" class="form-control" id="password"
						placeholder="Password">
				</div>
				<div id="captcha_paragraph">
					<%
						ReCaptcha c = ReCaptchaFactory.newReCaptcha(
								"6Ld50wATAAAAAFIZfcMNflhb5zYpZjAODT7aCxag",
								"6Ld50wATAAAAAAuAfbo9iIP589JduRY3P3p59c9c", false);
						out.print(c.createRecaptchaHtml(null, null));
					%>
				</div>
				<hr>
				<button type="submit" class="btn btn-primary">Sign in</button>
			</form>
		</div>
	</div>
</body>
</html>